-- GENERATED SPELL FOR [Copperpot Goon] --


function spell0_34505(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34505', 5335, 1)
end

function spell1_34505(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34505', 601, 1)
end

function Sorts_34505(pUnit, Event)
local choix_sorts_34505 = math.random(0, 1)
if choix_sorts_34505 == 0 then
pUnit:RegisterEvent('spell0_34505', 1, 1)
end
if choix_sorts_34505 == 1 then
pUnit:RegisterEvent('spell1_34505', 1, 1)
end
end

function mob34505_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34505', math.random(1500, 3000), 1)
end

function mob34505_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34505_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34505_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34505, 1, 'mob34505_Action')
RegisterUnitEvent(34505, 2, 'mob34505_Leave')
RegisterUnitEvent(34505, 3, 'mob34505_Kill')
RegisterUnitEvent(34505, 4, 'mob34505_Die')
